package com.wuming.caiwu.service;


import com.wuming.caiwu.core.BusinessException;
import com.wuming.caiwu.model.Menu;
import com.wuming.caiwu.model.QsgTeachingAssistant;

import java.util.List;

/**
 * 助教服务
 * Created by hanfei on 16/4/19.
 */
public interface QsgTeachingAssistantService {

    /**
     * 保存助教
     *
     * @param assistant 助教基本信息
     * @throws BusinessException
     */
    void saveQsgTeachingAssistant(QsgTeachingAssistant assistant) throws BusinessException;


    /**
     * 更新助教
     *
     * @param assistant 助教基本信息
     * @throws BusinessException
     */
    void updateQsgTeachingAssistant(QsgTeachingAssistant assistant) throws BusinessException;

    /**
     * 根据手机号查询助教
     * @param phone 手机号
     * @return 助教
     * @throws BusinessException
     */
    List<QsgTeachingAssistant> getTeachingAssistantByPhone(String phone) throws BusinessException;
    /**
     * 分页查询助教列表
     *
     * @param nickname      助教昵称
     * @param teachLevel    助教等级
     * @param pageIndex     当前页
     * @param pageSize      每页条数
     * @return 助教列表
     * @throws BusinessException
     */
    List<QsgTeachingAssistant> getTeachingAssistantByPage(String nickname,String teachLevel, int pageIndex, int pageSize) throws BusinessException;

    /**
     * 查询总的助教数
     *
     * @param nickname      助教昵称
     * @param teachLevel    助教等级
     * @return 助教总数
     * @throws BusinessException
     */
    int getTotal(String nickname,String teachLevel) throws BusinessException;

    /**
     * 根据助教ID查询助教
     * @param id 助教ID
     * @return 助教信息
     * @throws BusinessException
     */
    QsgTeachingAssistant getTeachingAssistantById(Long id) throws BusinessException;


    /**
     * 根据ID删除助教信心
     * @param id 助教ID
     * @throws BusinessException
     */
    void removeTeachingAssistantById(Long id) throws BusinessException;

}
